﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Bigger.Base;
using Bigger.Core.Service;
using Bigger.Web;
using Bigger.Web.Logging;

namespace Bigger.Study.Web
{
    public class BiggerFramework
    {
        public static void Register()
        {
            //初始化服务
            UnityConfiguration.UnityConfig.InitialConfig();
            BaseConfiguration.RegisterWriteSqlLog((sender, e) =>
            {
                IWebLogService objWebLogService = WebConfiguration.WebLogServiceProvider.CreateWebLogService();
                objWebLogService.WriteSqlLog(e.DbConnection, e.SqlString, e.DbParameters);
            });
        }
    }
}